/**
 * Created by IntelliJ IDEA.
 * User: maticm
 * Date: Oct 11, 2003
 * Time: 2:11:10 PM
 * To change this template use Options | File Templates.
 */

package com.generalynx.common.web.navigation;

import com.generalynx.common.web.module.Module;

public class SimpleMenuItemRenderer extends BasicMenuItemRenderer {

    public String permittedItem(Module node) {
        return getStartTag() + super.permittedItem(node) + getEndTag();
    }

    private String getStartTag() {
        return "<div class=\"menuitem\">";
    }

    private String getEndTag() {
        return "</div>";
    }

    public String restrictedItem(Module node) {
        return null;
    }

    public String chosenItem(Module node) {
        return "<div class=\"menuitem selected\">" + super.chosenItem(node) + getEndTag();
    }
}
